home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8109 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  814 b 

  1. Path: fs7.ece.cmu.edu!takahasi
  2. From: takahasi@poisson.ece.cmu.edu (Eduardo S. C. Takahashi)
  3. Newsgroups: comp.lang.c
  4. Subject: Speed of random generators
  5. Date: 01 Mar 1996 16:38:16 GMT
  6. Organization: Electrical and Computer Engineering
  7. Distribution: world
  8. Message-ID: <TAKAHASI.96Mar1113825@poisson.ece.cmu.edu>
  9. NNTP-Posting-Host: poisson.ece.cmu.edu
  10.  
  11.  
  12. I'm working in a simulation that requires intensive use of pseudo-random
  13. sequences. My problem is that profiling the program I found out that the
  14. generation of the sequences is responsible for about 50% of the total 
  15. execution time. Since each run can take about 4 hours, it would be good
  16. if I could save some time. 
  17.  
  18. Presently, I'm using the function erand48(), and I'm also making some 
  19. tests with ramdom(). If anyone has a suggestion I would really appreciate!
  20.